import { defineConfig } from "umi";
import { routes } from "@/router/router";

export default defineConfig({
  routes,
  proxy: {
    "/api": {
      target: "baseUrl:  http://xue.cnkdl.cn:23683/api/",
      changeOrigin: true,
      pathRewrite: { "^/api": "" },
    },
  },
  request: {
    dataField: "data",
  },
  npmClient: "pnpm",
});
